package com.yzc.android.beans;

import android.os.Parcel;

/**
 * Created by yzc on 16/4/25.
 */
public class BannerInfoBean implements android.os.Parcelable {
    public String imgUrl;
    public String webUrl;
    public String shareUrl;
    public String shareTitle;
    public String shareContent;
    public String shareThumbnail;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.imgUrl);
        dest.writeString(this.webUrl);
        dest.writeString(this.shareUrl);
        dest.writeString(this.shareTitle);
        dest.writeString(this.shareContent);
        dest.writeString(this.shareThumbnail);
    }

    public BannerInfoBean() {
    }

    protected BannerInfoBean(Parcel in) {
        this.imgUrl = in.readString();
        this.webUrl = in.readString();
        this.shareUrl = in.readString();
        this.shareTitle = in.readString();
        this.shareContent = in.readString();
        this.shareThumbnail = in.readString();
    }

    public static final Creator<BannerInfoBean> CREATOR = new Creator<BannerInfoBean>() {
        @Override
        public BannerInfoBean createFromParcel(Parcel source) {
            return new BannerInfoBean(source);
        }

        @Override
        public BannerInfoBean[] newArray(int size) {
            return new BannerInfoBean[size];
        }
    };
}
